package org.jeecg.modules.weixi.controller;


import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.weixi.entity.wxUser;
import org.jeecg.modules.weixi.service.wxUserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 类名称：SysUserController
 * 类描述：
 * 创建人：黄丽娟
 *
 * @date 2021-08-18 17:06
 */
@Api(tags="User")
@RestController
@RequestMapping("/weixi/SysUser")
@Slf4j
public class WxUserController {
    @Resource
    private wxUserService wxUserService;
    /**
     * 获取用户列表数据
     * @param user
     * @return
     */
    @RequestMapping(value = "/findByUser", method = RequestMethod.GET)
    public Result<wxUser> findByUser(wxUser user) {
        Result<wxUser> result = new Result<wxUser>();
        result.setSuccess(true);
        result.setResult(wxUserService.findByUser(user));
        return result;
    }
}
